﻿using System;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Entities;

namespace WMS.Seven.Models
{
    public class Sales : Entity<int>
    {
        /// <summary>
        /// 销售订单号
        /// </summary>
        [StringLength(30)]
        public string? SalesOrderCode { get; set; }

        /// <summary>
        /// 出库数
        /// </summary>
        public int? OutQuantity { get; set; }

        /// <summary>
        /// 退货数
        /// </summary>
        [StringLength(10)]
        public string? ReturnQuantity { get; set; }

        /// <summary>
        /// 退货数（出库）
        /// </summary>
        [StringLength(10)]
        public int? ReturnOutQuantity { get; set; }

        /// <summary>
        /// 销售时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 制单人
        /// </summary>
        [StringLength(10)]
        public string? Maker { get; set; }

        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime? MakeTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(100)]
        public string? Remark { get; set; }

        /// <summary>
        /// 发货日期
        /// </summary>
        public DateTime? DeliveryDate { get; set; }

        /// <summary>
        /// 客户编号
        /// </summary>
        [StringLength(50)]
        public string? CustomerCode { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        [StringLength(10)]
        public string? CustomerName { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        [StringLength(10)]
        public string? CustomerContact { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        [StringLength(20)]
        public string? CustomerPhone { get; set; }
    }
}
